Skip to content

Harden installer auth handling for GitHub Packages#12

Merged
anand-testcompare merged 1 commit intomainfrom
fix/installer-gh-token-scope
Feb 28, 2026
Merged

Harden installer auth handling for GitHub Packages#12
anand-testcompare merged 1 commit intomainfrom
fix/installer-gh-token-scope

Conversation

@anand-testcompare
Copy link
Contributor

Summary

  • make scripts/install-gh-package.sh smarter about GitHub Packages auth
  • auto-check gh auth token scopes and attempt read:packages refresh when possible
  • provide explicit guidance when install fails due missing package scopes
  • skip registry auth setup automatically for local tarball installs
  • remove legacy always-auth write from generated .npmrc

Why

gh auth login default scopes do not include package scopes, which caused confusing install failures against npm.pkg.github.com.

Validation

  • bun run check
  • bash -n scripts/install-gh-package.sh
  • local tarball install via installer with isolated HOME/prefix (pass)

@anand-testcompare anand-testcompare merged commit 25f36c8 into main Feb 28, 2026
7 checks passed
@anand-testcompare anand-testcompare deleted the fix/installer-gh-token-scope branch February 28, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant